package com.gl.mapper;

import com.gl.pojo.entity.Meeting;
import com.gl.pojo.vo.MeetingVo;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface MeetingMapper {
    int insertMeeting(Meeting meeting);

    int updateMeeting(Meeting meeting);

    @Select("SELECT * FROM meeting WHERE id = #{meetingId}")
    Meeting selectById(String meetingId);

    List<Meeting> pageQuery(Meeting meeting);
    List<MeetingVo> adminPageQuery(Meeting meeting);

    @Delete("DELETE FROM meeting WHERE id = #{meetingId}")
    int deleteById(String meetingId);
}
